<?php
// +----------------------------------------------------------------------
// | JSHOP [ 小程序商城 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://jihainet.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: tianyu <tianyu@jihainet.com>
// +----------------------------------------------------------------------
namespace app\api\controller;

use app\common\controller\Api;
use app\common\model\Advertisement;
class Advert extends Api
{


    /**
     *  获取广告列表
     *
     */
    public function advertList ()
    {
        $code = input('param.code/s');
        $advertModel = new Advertisement();
        return $advertModel->getAdvertList($code, input('param.page/d'), input('param.limit/d'));
    }

}